import positionView from '../views/position.art'
import http from '../models/http'
export const position=async (req,res,next)=>{
    let result=await  http.post({
        url:'api/position/findAll'
    }) 
     if(result.ret){
       res.render(positionView())
     }else{
       res.go('/home')
     }
}